package com.itwxz.system.enums.order;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatus  {
	PENDING(1, "待接单"),
	ACCEPT(2, "已接单"),
	IN_PROGRESS(3, "维修中"),
	COMPLETED(4, "已完成"),
	CANCELLED(5, "已作废");

	@EnumValue
	@JsonValue
	private final Integer code;  // 状态码
	private final String desc;  // 状态描述
}
